﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Buccontrols;
using PluginInterface;
using Buccaneer;

namespace ExamplePlugin
{
    public partial class Interface : PluginForm
    {
        public Interface()
        {
            InitializeComponent();
        }

        public void LoadText(string text)
        {
            this.tbx_main.Text = text;
        }

        public string GetText()
        {
            return this.tbx_main.Text;
        }

        private void btn_save_Click(object sender, EventArgs e)
        {
            base.Act("save", null);
        }

        private void btn_open_Click(object sender, EventArgs e)
        {
            base.Act("open", null);
        }

        private void btn_close_Click(object sender, EventArgs e)
        {
            base.Act("close", null);
        }
    }
}
